package com.pointstar.dp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 应用启动器
 * @author zkr<admin@pointstar.com>
 */

@Slf4j
@EnableTransactionManagement
@EnableCaching
@SpringBootApplication
public class DpApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(DpApplication.class, args);
        log.info("The PointStar application has been started successfully!");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(DpApplication.class);
    }
}
